package com.example.builderpattern.entity;

/**
 * @author ash
 * @description 建造者1
 * @create 2023/2/12  22:35:37
 * @className ConcreteBuilder1
 * @verson 1.0.0
 */
public class ConcreteBuilder1 extends Builder {
    private final Product product = new Product();
    @Override
    public void BuildPartA() {
        System.out.println("建造者1的A创建方法！");
    }
    @Override
    public void BuildPartB() {
        System.out.println("建造者1的B创建方法！");
    }
    @Override
    public Product GetResult() {
        return product;
    }
}
